package com.ct.sales.view;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import com.ct.sales.R;
import com.ct.sales.view.widget.RadiateView;

public class RaidFragment extends Fragment {

    RadiateView mRvGroup;
    ImageView mIvMain;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        System.out.println("RaidFragment.onCreateView");
        View v = inflater.inflate(R.layout.fg_raid, null);
        mRvGroup = (RadiateView) v.findViewById(R.id.rv_raid_group);
        mIvMain = (ImageView) v.findViewById(R.id.iv_raid_center);

        mRvGroup.setMainView(mIvMain);
        mRvGroup.addAssistView(v.findViewById(R.id.iv_raid_top));
        mRvGroup.addAssistView(v.findViewById(R.id.iv_raid_bottom));
        mRvGroup.addAssistView(v.findViewById(R.id.iv_raid_left));
        mRvGroup.addAssistView(v.findViewById(R.id.iv_raid_right));
        return v;
    }

}
